x86/HVM: properly deal with hvm_copy_*_guest_phys() errors
authorJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 07:53:31 +0000 (09:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 07:53:31 +0000 (09:53 +0200)
commit63b02eff535b8798517b5a280cc2fff2f7d415c1
tree9c56d677aeae0f14f16e8945951bef5afa8c7999
parente0c4efbe6dd6822c91b466c34bc6d8aaa935d90f
x86/HVM: properly deal with hvm_copy_*_guest_phys() errors

In memory read/write handling the default case should tell the caller
that the operation cannot be handled rather than the operation having
succeeded, so that when new HVMCOPY_* states get added not handling
them explicitly will not result in errors being ignored.

In task switch emulation code stop handling some errors, but not
others.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c